<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function getNums(num1,num2){
            console.log(num1,num2);
        }
        
        getNums(1);        //实参个数少于形参个数
        getNums(1,2);      //实参个数等于形参个数
        getNums(1,2,3);    //实参个数多于形参个数
    </script>
</head>
<body>
    
</body>
</html>